package com.ay.springbootnetty.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @Description:
 * @author: JinMu
 * @create: 2018-08-24 18:16
 * @Version: 1.0
 **/
@Entity
@Table(name = "t_user")
public class User {

    private static final long serialVersionUID = -1L;

    @Id
    @Column(name = "t_id")
    private Integer id;

    @Column(name = "t_name")
    private String name;

    @Column(name = "t_age")
    private String age;

    public User() {
    }

    public User(Integer id, String name, String age) {
        this.id = id;
        this.name = name;
        this.age = age;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age='" + age + '\'' +
                '}';
    }
}
